Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tidy git clone errors #304

Merged
merged 1 commit into from
Mar 3, 2021
Merged

Tidy git clone errors #304

merged 1 commit into from
Mar 3, 2021

Conversation

squaremo
Copy link
Member

@squaremo squaremo commented Mar 3, 2021

In some circumstances (that are rather hard to reproduce), cloning from a GitLab repo gets a multiline response as described in fluxcd/image-automation-controller#115.

This uses the same remedy as in that PR, by calling the funcs provided by fluxcd/pkg/gitutil on any error returned by libgit2 or gogit clone operations.

This should not change any errors that are not multiline, i.e., everything should look the same in other-than-GitLab circumstances.

I allege that this fixes #120

In some circumstances (that are rather hard to reproduce), cloning
from a GitLab repo gets a multiline response as described in
fluxcd/image-automation-controller#115.

This uses the same remedy as in that PR, by calling the funcs provided
by fluxcd/pkg/gitutil on any error returned by libgit2 or gogit clone
operations.

Signed-off-by: Michael Bridgen <mikeb@squaremobius.net>
Copy link
Member

@stefanprodan stefanprodan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Thanks @squaremo

@squaremo squaremo merged commit bbd63d5 into main Mar 3, 2021
@squaremo squaremo deleted the use-gitutil-giterrs branch March 3, 2021 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GitLab self-hosted: git clone unknown error
2 participants